<?php /* Smarty version 2.6.18, created on 2017-01-04 15:58:12
         compiled from activitys/activitys.update.tpl.php */ ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
<div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="post" role="form" enctype="multipart/form-data">
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">修改活动安排</p>
                </div>
                <div class="box-body">
                  <div class="form-group">
                      <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0;">
                            活动标题：
                      </label>
                        <div class="input-group col-md-4 col-sm-12 col-xs-12">
                          <input type="text" name="activitys_title" class="form-control" value="<?php echo $this->_tpl_vars['activitys_data']['activitys_title']; ?>
">
                        </div> 
                   </div>
                  <div class="form-group">
                      <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; ">
                               活动内容：
                      </label>
                        <div class="input-group col-md-10 col-sm-12 col-xs-12">
                            <textarea id="category_content" name="activitys_con" rows="14" class="form-control"><?php echo $this->_tpl_vars['activitys_data']['activitys_con']; ?>
</textarea>
                        </div> 
                  </div>
                    <div class="form-group">
                        <label  class="col-md-1 control-label text-right" >
                            附件：
                        </label>
                        <div class="input-group col-md-6 col-sm-12 col-xs-12">
                            <?php if ($this->_tpl_vars['activitys_data']['activitys_file'] != ""): ?>
                            <br><input type="radio" name="activitys_file_re" value="0" checked>
                            <a href="upload/activitys_file/<?php echo $this->_tpl_vars['activitys_data']['activitys_file']; ?>
" download="" target="_blank"><?php echo $this->_tpl_vars['activitys_data']['activitys_file']; ?>
</a>
                            <br><br><input type="radio" name="activitys_file_re" value="1" > 重新上传 <input id="activitys_file" name="activitys_file" type="file" size="60"/>
                            <?php else: ?>
                            <input id="activitys_file" name="activitys_file" type="file" size="60"/>
                            <input type="hidden" name="activitys_file_re" value="1">
                            <?php endif; ?>
                        </div>
                    </div>
               </div><!--box-body --> 
             <div class="box-footer text-center">
                     <button class="btn btn-primary" type="submit">确 定 修 改</button>
               </div>
             </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
</div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<script>
/* 日历编辑*/
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>
  <script type="text/javascript" src="static/xhe/xheditor-1.2.2.min.js"></script>
<script type="text/javascript" src="static/xhe/xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>